package service

import (
	"user_srv/global"
	"user_srv/internal/model/dao"
)

func FindUserByMobile(mobile string) (dao.User, error) {
	var user dao.User
	global.DB.Where("mobile = ?", mobile).First(&user)

	return user, nil
}
